// vant组件使用全局注册
import Vue from 'vue'
import {
  Button,
  NavBar,
  Form,
  Field,
  Tabbar,
  TabbarItem,
  Icon,
  Tab,
  Tabs,
  Cell,
  CellGroup,
  List,
  PullRefresh,
  ActionSheet,
  Popup,
  Row,
  Col, Badge,
  Search,
  Divider,
  Tag,
  Image,
  Dialog,
  DatetimePicker,
  DropdownMenu, DropdownItem,
  Lazyload,
  Loading
} from 'vant'

// 全局注册Button组件
Vue.use(Button)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(List)
Vue.use(PullRefresh)
Vue.use(ActionSheet) // 动作面板
Vue.use(Popup)
Vue.use(Badge)
Vue.use(Row)
Vue.use(Col)
Vue.use(Search)
Vue.use(Tag)
Vue.use(Divider)
Vue.use(Image)
Vue.use(Dialog)
Vue.use(DatetimePicker)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Loading) // 文章加载中的状态显示
Vue.use(Lazyload, {
  preLoad: 0.9 // 预加载高度的比例
}) // 图片懒加载
